﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ml_testing_BingTrans
{
    public partial class TestingHttp : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_Click(object sender, EventArgs e)
        {
            var ss = txt.Text.Replace("\r\n","\r").Split('\r');
            var tranVal = new StringBuilder();
            foreach(var str in ss)
            {
                if(str.Length > 0)
                    tranVal.Append(TransHttpHelper.GetTranslations(str));
                tranVal.Append("\r\n");
            }
            txtTarnsVal.Text = tranVal.ToString();
        }
    }
}
